package com.etcn.modules.busi.member.pojo;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.etcn.common.Enum.DateFormat;
import com.etcn.common.pojo.BaseEntity;
import com.etcn.common.utils.DateUtil;
import com.etcn.common.utils.StringUtil;

/**
 * 会员entity
 * @author guozc
 * @date 2018-03-09 08:21:55
 */
public class WmMember extends BaseEntity<WmMember> {

    private static final long serialVersionUID = 1L;
    
    /**
	 * 主键
	 */
    @JSONField(serialize = false)
    private Long id;
    
    /**
     * 会员id
     */
    private String memberId;

    /**
	 * 会员名
	 */
    private String name;
    
    /**
     * 手机号
     */
    private String mobile;

    /**
     * 旧密码
     */
    @JSONField(serialize = false)
    private String oldPassword;
    
    /**
	 * 密码
	 */
    @JSONField(serialize = false)
    private String password;

    /**
	 * 会员状态(0:正常，1:已冻结)
	 */
    @JSONField(serialize = false)
    private String status;
    
    /**
     * vip套餐
     */
    private String vipProductId;

    /**
	 * vip标识(0:免费，1:vip)
	 */
    private String vipFlag;

    /**
	 * vip等级
	 */
    private String vipLevel;
    
    /**
     * 头像
     */
    private String headImage;

    /**
	 * 会员截止时间
	 */
    private String vipEndTime;

    /**
	 * 登录日期
	 */
    @JSONField(serialize = false)
    private Date loginTime;

    /**
	 * 创建时间
	 */
    @JSONField(serialize = false)
    private Date createTime;

    /**
	 * 修改时间
	 */
    @JSONField(serialize = false)
    private Date modifyTime;

    /**
	 * 备注
	 */
    private String memo;

    /**
	 * 备用字段1
	 */
    @JSONField(serialize = false)
    private String prop1;

    /**
	 * 备用字段1
	 */
    @JSONField(serialize = false)
    private String prop4;

    /**
	 * 备用字段1
	 */
    @JSONField(serialize = false)
    private String prop3;

    /**
	 * 备用字段1
	 */
    @JSONField(serialize = false)
    private String prop2;
    
    /**
     * 手机验证码
     */
    @JSONField(serialize = false)
    private String verifyCode;
    
	public WmMember() {
	}
	
    public Long getId() {
       	return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }

    public String getStatus() {
        return status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }

    public String getVipFlag() {
        return vipFlag;
    }
    
    public void setVipFlag(String vipFlag) {
        this.vipFlag = vipFlag;
    }

    public String getVipLevel() {
        return vipLevel;
    }
    
    public void setVipLevel(String vipLevel) {
        this.vipLevel = vipLevel;
    }

	public String getVipEndTime() {
		if (StringUtil.isNotEmpty(vipEndTime) && vipEndTime.endsWith(".0")) {
			vipEndTime = vipEndTime.substring(0, vipEndTime.length()-2);
		}
		return vipEndTime;
	}
	
	public void setVipEndTime(String vipEndTime) {
	
		this.vipEndTime = vipEndTime;
	}

	public Date getLoginTime() {
        return loginTime;
    }
    
    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }
    
    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getMemo() {
        return memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getProp1() {
        return prop1;
    }
    
    public void setProp1(String prop1) {
        this.prop1 = prop1;
    }

    public String getProp4() {
        return prop4;
    }
    
    public void setProp4(String prop4) {
        this.prop4 = prop4;
    }

    public String getProp3() {
        return prop3;
    }
    
    public void setProp3(String prop3) {
        this.prop3 = prop3;
    }

    public String getProp2() {
        return prop2;
    }
    
    public void setProp2(String prop2) {
        this.prop2 = prop2;
    }

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getVerifyCode() {
		return verifyCode;
	}

	public void setVerifyCode(String verifyCode) {
		this.verifyCode = verifyCode;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getHeadImage() {
		return headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}

	public String getOldPassword() {
		return oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}
	
	public String getVipProductId() {
	
		return vipProductId;
	}
	
	public void setVipProductId(String vipProductId) {
	
		this.vipProductId = vipProductId;
	}
	
}
